import { TimePicker } from 'antd';
import './style.module.css';
import zhCN from 'antd/lib/locale/zh_CN';
import locale from 'antd/es/date-picker/locale/zh_CN';

const { RangePicker } = TimePicker;

export default function TimePicker1({ ...props }) {
  return props.isRange ? (
    <TimePicker.RangePicker locale={locale} {...props} />
  ) : (
    <TimePicker locale={locale} {...props} />
  );
}
